<?php

class Kd_Html_Form_Tab extends Kd_Html_Element {

    private $_label = '';
    private $_fields = array();
    private $_form = NULL;

    public function __construct() {
        parent::__construct();
        $this->templateName = 'form/tab';
    }

    public function getLabel() {
        return $this->_label;
    }
    public function setLabel($value) {
        $this->_label = $value;
        return $this;
    }

    public function getForm() {
        return $this->_form;
    }
    public function setForm($value) {
        $this->_form = $value;
        return $this;
    }

    public function getFields(){
        return $this->_fields;
    }

    public function addField(array $fields){
        $this->_fields = array_merge($this->_fields, $fields);
        return $this;
    }

    protected function render() {
        return '';
    }
}